package com.wsapi.core.dao.impl;

import com.wsapi.core.dao.RoleDao;
import com.wsapi.core.dao.model.SysRole;
import com.wsapi.core.dao.model.SysRolePerm;
import java.util.List;
import org.springframework.stereotype.Repository;

/**
 * Created with IntelliJ IDEA. User: yangyan Date: 14-1-2 Time: 下午9:49
 */
@Repository
public class RoleDaoImpl extends BaseDaoImpl<SysRole, Integer> implements RoleDao {

    @Override
    public List<SysRolePerm> getPermisionListByRoleId(Integer roleId) {
        return this.findList(SysRolePerm.class, "from SysRolePerm where role.roleId = ?", roleId);
    }

    

}
